package com.probiz.estore.order.dao.impl;

import java.util.List;

import com.probiz.estore.Constants;
import com.probiz.estore.order.dao.OrderExpressDao;
import com.probiz.estore.common.model.order.OrderExpress;
import com.probiz.estore.core.dao.impl.HibernateGenericDaoImpl;

/**
 * Dao implementation for OrderExpress.
*/
public class OrderExpressDaoImpl extends HibernateGenericDaoImpl<OrderExpress> implements OrderExpressDao {
	/*
	 * (non-Javadoc)
	 * @see com.probiz.estore.order.dao.OrderExpressDao#listAvailableOrderExpress()
	 */
	public List<OrderExpress> listAvailableOrderExpress(){
		return this.findByHql("from OrderExpress o where o.status = ? order by o.sortOrder asc",Constants.STATUS_ACTIVE);
	}
}
